home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / splitex.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  1KB  |  53 lines

  1. ////////////////////////////////////////////////////////////////////////////
  2. //
  3. // splitex.h
  4. // Based upon code from Oleg G. Galkin
  5. // Modified to handle multiple hidden rows/columns
  6.  
  7. #pragma once
  8. class CSplitterWndEx : public CSplitterWnd
  9. {
  10. protected:
  11.  
  12.     int *m_arr;  // array the keeps track of actual row/columns versus perceived row/column
  13.     int m_length; // length of above array
  14.  
  15.     int Id_short(int row, int col);
  16.  
  17. public:
  18.     void GetRowInfoEx( int row, int& cyCur, int& cyMin );
  19.     void GetColumnInfoEx( int row, int& cyCur, int& cyMin );
  20.     BOOL IsRowHidden(int row);
  21.     BOOL IsColumnHidden(int row);
  22.     CWnd* GetPane(int row,int col);
  23.     CSplitterWndEx();
  24.  
  25.     virtual ~CSplitterWndEx();
  26.  
  27.     inline BOOL BarIsHorizontal() const { return m_nCols < m_nRows; }
  28.     __int64 GetSizes() const;
  29.  
  30.     void ShowRow(int row);
  31.     void ShowColumn(int row);
  32.  
  33.     int IdFromRowCol(int row, int col) const;
  34.     void HideRow(int rowHide,int rowToResize=-1);
  35.     void HideColumn(int rowHide,int rowToResize=-1);
  36.  
  37.     BOOL IsChildPane(CWnd* pWnd, int* pRow, int* pCol);
  38.     CWnd *GetActivePane(int* pRow, int* pCol);
  39.  
  40. // ClassWizard generated virtual function overrides
  41.      //{{AFX_VIRTUAL(CSplitterWndEx)
  42.      //}}AFX_VIRTUAL
  43.  
  44. // Generated message map functions
  45. protected:
  46.      //{{AFX_MSG(CSplitterWndEx)
  47.       // NOTE - the ClassWizard will add and remove member functions here.
  48.      //}}AFX_MSG
  49.  
  50.     DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53.